package yf.mall.service;

import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;
import yf.mall.entity.LotteryCountEntity;
import yf.mall.vo.LotteryCountNumberVo;
import yf.mall.vo.LotteryCountVo;
import com.yf.service.BaseService;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * 抽奖机会Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Aug 20 17:10:40 CST 2020
 */
public interface LotteryCountService extends BaseService<LotteryCountEntity> {

    /************自动生成**************/
    List<LotteryCountVo> findVo(LotteryCountVo vo);

        LotteryCountVo getVo(Long id);

     int updateVo(LotteryCountVo vo);

       int saveVo(LotteryCountVo vo);

    void downLoad(HttpServletResponse response, List<LotteryCountVo> list);


    /***********BACK***********/




    /***********API***********/

    LotteryCountEntity findByActIdAndUserId(Long actId, Long userId);


    LotteryCountEntity addCount(long userId, Long actId);

    LotteryCountNumberVo getLotteryCount(Long userId, Integer status);

    void saveLotteryCount(Long userId,LotteryCountNumberVo lotteryCount);
}
